import request from "@/utils/request";
class Api {
  /*     修改密码     */
  static usersPassWords (data) {
    let {id, ...otherData} = data
    return request({
      url: `/api/admin/users/${id}/password`,
      method: "PUT",
      data:otherData
    });
  }
  /*     修改支付密码     */
  static usersPaymentPassword (data) {
    let {id, ...otherData} = data
    return request({
      url: `/api/admin/users/${id}/payment-password`,
      method: "PUT",
      data:otherData
    });
  }

}
export default Api;